# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Francois Charette <firmicus@gmx.net>

pkgname=perl-test-deep
pkgver=1.204
pkgrel=1
pkgdesc="Extremely flexible deep comparison "
arch=('any')
url="https://search.cpan.org/dist/Test-Deep"
license=('GPL' 'PerlArtistic')
depends=('perl-test-nowarnings' 'perl-test-simple')
options=('!emptydirs')
source=(https://search.cpan.org/CPAN/authors/id/R/RJ/RJBS/Test-Deep-$pkgver.tar.gz)
sha256sums=('b6591f6ccdd853c7efc9ff3c5756370403211cffe46047f082b1cd1611a84e5f')

build() {
  cd  "$srcdir"/Test-Deep-$pkgver
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

package() {
  cd  "$srcdir"/Test-Deep-$pkgver
  make install DESTDIR="$pkgdir"
  find "$pkgdir" -name '.packlist' -delete
  find "$pkgdir" -name '*.pod' -delete
}
